<script setup>
import { reactive,defineProps  } from 'vue';
import { ElImage } from 'element-plus';
const props = defineProps(['message']);
console.log(props.message)
</script>

<template>
  <div class="course_box" >
    <div class="course_head">
      <el-image :src="props.message.image" fit="fill" ></el-image>
    </div>
    <div class="content">
        <div class="title">
乐高®教育推出中小学科学教学全新解决方案
      </div>
      <div class="text">
        阅读官方产品公告，深入了解我们的愿景、技术创新及承诺，探索其如何助力科学课堂，提升教学实践。
       </div>
      <div class="footer">
      详情
    </div> 
    </div>

  </div>
</template>

<style scoped>
.course_box {
  margin-left: 1rem;
  margin-right: 1rem;
  box-sizing: border-box;
  padding-bottom: 20px;
  position: relative;
  width: 20em;
}
@media (max-width: 1580px) {
  .course_box{
    width: 25em;
  }
}
.course_box .course_head{
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); 
  position: relative;
  margin: auto;
  z-index: 1;
  border-radius: 15px;
  overflow: hidden;
  height: 10em;
  width: 80%;

}
.course_head el-image{
  border-radius: 15px;
  overflow: hidden;
}
.course_box .content{
  border: #A0A0B1 solid  2px ;
  transition-duration: 0.5s;
  text-align: center;
  border-radius: 15px;
  margin-top: -100px;
  padding: 20px;
  height: 23rem;
  box-sizing: border-box;
  padding-top: 120px;
  background-color: white;
}
.course_box:hover .content{
  box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.2);
}


.content .text{
  overflow: hidden;
  white-space: normal;
  margin-top: 10px;
  height: 100px;
  text-align: left;
  font-size: 1rem;
}
.content .title{
  text-align: left;
  font-size: 1.9rem;
  font-weight: bold;
}
.content .footer{
  transition-duration: 0.5s;
  text-align:center;
  width: 100px;
  line-height: 50px;
  height: 50px;
  border-radius: 5px;
  position: absolute;
  bottom: 40px;
  right: 20px;
  background-color: rgb(160, 160, 177);
}

.course_box:hover .footer{
  background-color: #3D405B;
  color: white;
}

</style>
